package cn.sdstudio.service;

import cn.sdstudio.entity.User;
import cn.sdstudio.vo.EmailCodeVO;
import cn.sdstudio.vo.GraphicVO;
import cn.sdstudio.vo.LoginVO;

import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @author Zyq
 * @version 1.0
 * @date 2025/4/21 周一
 */

public interface LoginService extends IService<User> {

    /**
     * 用户登陆请求
     * @param loginVO DTO
     * @return LoginDTO
     */
    String login(LoginVO loginVO);

    /**
     * 获取图形验证码
     * @return
     */
    GraphicVO getCaptcha();

    /**
     * 获取邮箱验证码
     * @param email
     * @return
     */
    EmailCodeVO getEmailCode(String email);


    Boolean createUser(LoginVO loginVO);
}
